<?php

namespace app\api\validate;

use think\Validate;

class Address extends Validate
{
    protected $rule = [
        "nickname" => "require",
        "tel" => "require",
        "province" => "require",
        "city" => "require",
        "district" => "require",
        "town" => "require",
        "details" => "require",
    ];

    protected $message = [
        'nickname.require' => '请填写收货人',
        'tel.require' => '请填写联系电话',
        'province.require' => '请选择省',
        'city.require' => '请选择市',
        'district.require' => '请选择区/县',
        'town.require' => '请选择街道',
        'details.require' => '请填写详细地址',
    ];

}